@charset "UTF-8";

*{
    padding: 0;
    margin: 0;
}

span{
    display: block;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: #98c8ea;
    line-height: 20px;
    text-align:center ;
}

.baba{
    width: 300px;
    height: 150px;
    border: 1px solid lightskyblue;
    border-radius: 6px;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.box{
    width: 100%;
    height: 100%;
    background: url("../img/1.png");
    border-radius: 5px;
}

span{
    position: absolute;
    right: 10px;
    bottom: 5px;
    cursor: pointer;
    color: white;
}

span:nth-of-type(1){
    right: 100px;
}

span:nth-of-type(2){
    right: 70px;
}

span:nth-of-type(3){
    right: 40px;
}

span:nth-of-type(2):hover ~ .box{
    background: url("../img/2.png");
}

span:nth-of-type(3):hover ~ .box{
    background: url("../img/3.png");
}

span:nth-of-type(4):hover ~ .box{
    background: url("../img/4.png");
}

span:hover{
    background: white;
    color: #98c8ea;
}

